package org.elanfox.intellicommunity.biz.repository.statistics;

import org.elanfox.intellicommunity.biz.entity.statistics.AlarmStatisticsPO;
import org.elanfox.intellicommunity.data.base.base.JpaSearchableRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/10/13
 */
@Repository
public interface AlarmStatisticsRepository extends JpaSearchableRepository<AlarmStatisticsPO, Long> {
    boolean existsByDate(LocalDate date);

    List<AlarmStatisticsPO> findByDateIsBetween(LocalDate begin, LocalDate end);
}
